import Mock from "mockjs"
let usersinfo = Mock.mock({
    "data|3":[
        {
            "id|+1":1,
            "utype":"@ctitle",
            "usubject":"@ctitle",
            "time":"@date",
            "ucontent":"@ctitle",
        }
    ]
})
//访问地址，访问数据
Mock.mock("/leaveword/list",usersinfo.data)
//添加记录
// Mock.mock("/leaveword/add","post",(option)=>{
//     const obj = JSON.parse(option.body)
//     obj.id=usersinfo.data[usersinfo.data.length-1].id+1
//     usersinfo.data.push(obj)
//     // console.log("options",option);
//     return{
//         msg:"添加成功",
//         state:"200"
//     }
// })